﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;

namespace _MetalSlug
{
    public static class UserInput
    {
        public static KeyboardState CurrentKeyBoard;
        public static KeyboardState OldKeyBoard;
        

        public static Boolean isKeyClicked(Keys keyChecked)
        {
            return OldKeyBoard.IsKeyDown(keyChecked) && CurrentKeyBoard.IsKeyUp(keyChecked);
        }
    }
}
